package com.miaoxie.service.crawl;

import com.miaoxie.domain.crawl.NewsCrawlDatumEntity;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Optional;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: miaoxie
 * Date: 2018-05-16
 * Time: 上午8:32
 */
public interface INewsCrawlDatumService {
    NewsCrawlDatumEntity creat(NewsCrawlDatumEntity entity);

    List<NewsCrawlDatumEntity> findAll();

    Optional<NewsCrawlDatumEntity> findById(String id);

    Page<NewsCrawlDatumEntity> findPage(Integer page, Integer size, String sortClom, String sortType);

}
